﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Demo.Mmose.Core.Common;

namespace Demo.Mmose.Core.Entity
{
    /// <summary>
    /// 以人物为单位的基础类
    /// </summary>
    public class Unit : WorldEntity, IComparable, IComparable<Unit>
    {
        #region zh-CHS 构造和初始化和清理 | en Constructors and Initializers and Dispose
        /// <summary>
        /// 默认构造函数
        /// </summary>
        public Unit()
        {
        }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="serial">唯一序号</param>
        public Unit( Serial serial )
            : base( serial )
        {
        }
        #endregion

        #region zh-CHS 接口实现 | en Interface Implementation
        /// <summary>
        /// 
        /// </summary>
        /// <param name="other"></param>
        /// <returns></returns>
        public int CompareTo( Unit other )
        {
            return CompareTo( other as WorldEntity );
        }
        #endregion
    }
}
